<%@ page language="java" pageEncoding="utf-8"%>
<%@ page import="packaging.*"%>
<%@ page import="java.sql.*"%>

<html>
	<body>
		<%
			request.setCharacterEncoding("utf-8");
		    check pp=new check();
			String id = request.getParameter("id");
			String sql = "select * from imp where p_id=" + id;
			ResultSet rs=pp.indexs(sql);
			
			if (rs.next()) {
		%>
		<form action="doEditProduct.jsp" method="post">
			
			<br />
			图片：
			<img  src="<%=rs.getString("p_imge") %>" width="120"/>
			<br />
			产品编号：
			<input type="text" name="p_id"
				value='<%=rs.getObject("p_id")%>' />
			<br />
			产品名称：
			<input type="text" name="p_name"
				value='<%=rs.getObject("p_name")%>' />
			<br />
			产品原价：
			<input type="text" name="p_oldprice"
				value='<%=rs.getObject("p_oldprice")%>' />
			<br />
			产品现价：
			<input type="text" name="p_newprice"
				value='<%=rs.getObject("p_newprice")%>' />
			<br />
			<%
				}
			%>
			<input type="submit" value="提交" />
			<input type="reset" value="重置" />
			<a href="index.jsp">返回</a>
		</form>
	</body>

</html>






